package top.iszsq.weixin;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author zsq
 * @version 1.0
 * @date 2021/3/31 16:09
 */
public class MyScanner {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        while (true) {
            System.out.println("请输入你想搜索的公众号：");
            String line = scanner.nextLine();
            System.out.println("你输入的是：" + line);

            //搜索公众号列表
            List<String> list = new ArrayList<>();
            list.add("csdn");
            list.add("csdn2");
            list.add("csdn3");

            System.out.println("----请按序号选择公众号");
            int i = 1;
            for (String item : list) {
                System.out.println( i + "：" + item);
                i++;
            }
        }
    }

}
